<template>
  <div class="wrapper">
    <swiper :options="swiperOption">
      <swiper-slide>
        <img class="swi" src="http://m.360buyimg.com/mobilecms/s1125x690_jfs/t28918/95/383894003/186174/4d4b702e/5bf226bbN95a19703.jpg!cr_1125x549_0_72!q70.jpg" alt="">
      </swiper-slide>
      <swiper-slide>
        <img class="swi" src="http://m.360buyimg.com/mobilecms/s1125x690_jfs/t27172/52/1697660591/85259/9d15d59d/5beaa25eN85a4e914.jpg!cr_1125x549_0_72!q70.jpg" alt="">
      </swiper-slide>
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
export default {
  name: 'HomeSwiper',
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true,
        autoplay: true,
        speed: 1000
      }
    }
  }
}
</script>

<style lang="stylus" scoped>
  .wrapper >>> .swiper-pagination-bullet-active
    background: #fff !important
  .wrapper
    overflow: hidden
    width: 100%
    height:0
    padding-bottom: 48.8%
    background: #eee
    .swi
      width 100%
</style>
